import 'dart:async';

import 'package:cleanetc_client/core/http/http.dart';

Stream post(String url, Map<String, dynamic> params) =>
    Stream.fromFuture(XHttp.post(url, params)).asBroadcastStream();

Stream get(String url, [Map<String, dynamic>? params]) =>
    Stream.fromFuture(XHttp.get(url, params)).asBroadcastStream();
